import request from '@/utils/request'

export function listAllRulesByPage(query) {
  return request({
    url: '/group-buying-rules/list',
    method: 'post',
    data: query
  })
}

export function deleteRules(query) {
  return request({
    url: '/group-buying-rules/delete',
    method: 'post',
    data: query
  })
}

export function createRules(query) {
  return request({
    url: '/group-buying-rules/create',
    method: 'post',
    data: query
  })
}

export function editRules(query) {
  return request({
    url: '/group-buying-rules/update',
    method: 'post',
    data: query
  })
}

export function listAllActivityByPage(query) {
  return request({
    url: '/group-buying/list',
    method: 'post',
    data: query
  })
}

export function createActivity(query) {
  return request({
    url: '/group-buying/create',
    method: 'post',
    data: query
  })
}

export function deleteActivity(query) {
  return request({
    url: '/group-buying/delete',
    method: 'post',
    data: query
  })
}
